package com.three.sb_group3.controller;

import com.three.sb_group3.entity.MoviesLikes;
import com.three.sb_group3.service.MoviesLikesService;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;
import java.util.List;

@RestController
@RequestMapping("MoviesLikes")
//评论互动：增加点赞数 周冰倩
public class MoviesLikesController {
    @Resource
    private MoviesLikesService moviesLikesService;
    @RequestMapping("likes")
    public List<MoviesLikes> moviesLikes() {
        List<MoviesLikes> result = moviesLikesService.moviesLikes();
        return result;
    }
    //发表评论：文字评论 张孜怡
    @RequestMapping("comments")
    public List<MoviesLikes> moviesComments() {
        List<MoviesLikes> result = moviesLikesService.moviesComments();
        return result;
    }



}
